<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>设备报修</title>
    <link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
    <link href="/widget/iconfont/iconfont.css" rel="stylesheet" />
    {cssjs}
    <link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型名称</label>
                        <div class="layui-input-block">

                            <input type="text" placeholder="类型名称" id="type_name" name="name" value="{name}" required lay-verify="required" autocomplete="off" class="layui-input">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型备注：</label>
                        <div class="layui-input-block">
                            <input type="text" placeholder="类型备注" id="type_code" name="remarks" value="{remarks}" required lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">维修人员：</label>
						<div class="layui-input-block">
							<input type="text" placeholder="维修人员" title="" id="acceptname" value="{acceptname}" name="acceptname" required lay-verify="required" autocomplete="off" class="layui-input" style="width:80%;"><a class="layui-btn layui-btn-small modal-iframe" href="javascript:void(0);" onclick="showAccept()" style="float:right;margin-top:-34px;font-size:14px;" title="添加维修人员">添加</a>
							<input type="hidden" name="accept_id" value="{repair_user}" id="accept_id">
						</div>
                    </div>
                    <!--<div class="layui-form-item">-->
                        <!--<label class="layui-form-label">排序</label>-->
                        <!--<div class="layui-input-block">-->
                            <!--<input type="text" placeholder="排序" autocomplete="on" id="odx" name="odx" value="{odx}" lay-verify="number" maxlength="3" class="layui-input">-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="text" id="id" name="id" value="{id}" style="display:none;"/>
                            <input type="button" id="btn_save" lay-submit lay-filter="formDemo" value="立即提交" class="layui-btn" />
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
</body>
{jsmodel}
<script type="text/javascript">
    layui.use('repair_edit');
	var index = parent.layer.getFrameIndex(window.name);//获取当前弹出层的ID
	function showAccept(){
	var userid=$("#accept_id").val();
		//iframe层
		  parent.layer.open({
		  type: 2,
		  title: '报修人选择',
		  shadeClose: true,
		  shade: 0.8,
		  area: ['100%','100%'],
		  content: './?t=select_accept&fid='+index+'&userid='+userid //iframe的url
		}); 
	}
</script>

</html>